package com.hgw.Demo02CommandPattern.Exercises17_10_4;

/**
 * Data time:2021/12/16 20:44
 * StudentID:2019112118
 * Author:hgw
 * Description: 客户端测试类
 */
public class Client {
    public static void main(String[] args) {
        CalculatorForm form;
        CommandQueue commandQueue = new CommandQueue();
        AddCommand addCommand = new AddCommand();
        commandQueue.addCommand(addCommand);
        form = new CalculatorForm(commandQueue);
        form.call(10);
        form.call(5);
    }
}
